﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zeus.Thunder.Core;

namespace SharpTrainer
{
    delegate int BinOp(int a, int b);

    class BinOpTest : ITestCase
    {
        public void Run()
        {
            BinOp add = new BinOp(Add);
            int result = add(1, 2); // calls the Add method through the delegate
            Console.WriteLine("Result: {0}", result);
        }

        private int Add(int a, int b)
        {
            return a + b;
        }
    }
}
